const mediaNameList = [
  '中国招标投标公共服务平台',
  '江苏省招标投标公共服务平台',
  '易智采招标采购网',
  '招标投标网',
  '中诚智信工程咨询集团股份有限公司官网'
]

// 处理招标公告刊登的媒体名称
const handleMediaNameSelect = (mediaNameSelect) => {
  if (mediaNameSelect) {
    return mediaNameSelect.split(',')
  }
  return []
}
// bidTime : 1749657600000
const transformTime = (time) => {
  if (time) {
    return new Date(time).toLocaleString()
  }
  return ''
}
// 报价情况 无rankNo
const transformInvalidRecords = ({ winBidResult }) => {
  return winBidResult.filter((item) => !item.rankNo)
}
// 标段号 有rankNo
const transformSectionNumberList = (deprecated, winBidResult) => {
  if (deprecated) {
    return []
  } else {
    return winBidResult.filter((item) => item.rankNo)
  }
}
export { mediaNameList, handleMediaNameSelect, transformInvalidRecords, transformTime, transformSectionNumberList }
